package com.liyunc.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping(value = "")
public class GoodsController {

    @RequestMapping(path = "/login")
    public ModelAndView login() {
        return new ModelAndView("login.html");
    }

    @RequestMapping(path = "/pay")
    public ModelAndView pay() {
        return new ModelAndView("pay.html");
    }

    @RequestMapping(path = "/index")
    public ModelAndView index() {
        return new ModelAndView("seckill-index.html");
    }

    @RequestMapping(path = "/item")
    public ModelAndView item() {
        return new ModelAndView("seckill-item.html");
    }
}
